% by jasper nevens
clc
clear all;
close all;

x=1;
y=3;
a=3*pi/4; % 45degrees

h=atan(y/x);
A=sqrt(x*x+y*y);

hn=h-a;
xn=A*cos(hn)
yn=A*sin(hn)


